LMGetHighHeapMark LMGetROMMapHandle LMGetStackLowPoint LMGetUnitTableEntryCount LMSetHighHeapMark LMSetROMMapHandle LMSetStackLowPoint LMSetUnitTableEntryCountWhat is wrong? Is there a workaround?
There is no good solution, but there is a workaround:
Create an external function in a file (say Extra.c) to access the low-mem yourself (from native code only), as shown below. When an updated library is released, you only have to remove the Extra.c.o file from your link command and relink your app, not recompile it.
UsingLMGetUnitTableEntryCount
as an example:
// File: Extra.c // Add Extra.c.o to your PPCLink command line // Later, when a .xcoff file is provided by Apple, replace it with that, // and delete your Extra.c.o. file. #if defined(powerc) || defined (__powerc) pascal short LMGetUnitTableEntryCount() { return *(short *)0x01D2; } #endif
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help